﻿using BW.MesProject.BasicData.Domain.基础;
using BW.MesProject.Public.ErrorCode;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.BasicData.Infrastructure
{
    public interface ISupplierServices
    {
        //根据id判断是添加还是修改
        ApiResult<int> AddSupplier(SupplierModel model);
        //删除
        ApiResult<int> DeleteSupplier(long id);
        //显示所有
        ApiResult<List<SupplierModel>> GetAllSupplier();
        //分页
        ApiPaging<SupplierModel> GetSupplier(string? Suppliercode, string? Suppliername, int pageindex, int pagesize);
        //根据id查询
        ApiResult<SupplierModel> GetSupplierById(long id);
    }
}
